module.exports = {
  presets: [
    ['@vue/cli-plugin-babel/preset',
      {
        useBuiltIns: 'entry',
        polyfills: [
          'es.promise',
          'es.symbol'
        ],
        corejs: 3
      }
    ]
  ],
  plugins: [
    ['import',
      {
        libraryName: 'vant',
        // libraryDirectory: 'es',
        // 指定样式路径
        style: (name) => `${name}/style/less`
      },
      'vant'
    ],
    ['@babel/plugin-transform-runtime']
  ]
}
